package com.quanyan.stadium.biz.impl;

import com.quanyan.stadium.biz.BizDatesportDao;
import com.quanyan.stadium.entity.TbDatesportInfo;
import com.quanyan.stadium.entity.TbDatesportInfoExample;
import com.quanyan.stadium.entity.TbGameEventTeamExample;
import com.quanyan.stadium.mapper.TbDatesportInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lei.w on 2017/3/7.
 */
@Service
public class BizDatesportDaoImpl implements BizDatesportDao {

    @Autowired
    private TbDatesportInfoMapper tbDatesportInfoMapper;

    @Override
    public List<TbDatesportInfo> selectDatesportInfoList(List<Integer> idList) {

        TbDatesportInfoExample example = new TbDatesportInfoExample();
        TbDatesportInfoExample.Criteria criteria = example.createCriteria();
        criteria.andIdIn(idList);

        return tbDatesportInfoMapper.selectByExample(example);
    }
}
